{{ if .Site.Params.highlightjs }}
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
  {{ range .Site.Params.highlightjsLang }}<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/{{ . }}.min.js"></script>{{ end }}
  <script>hljs.initHighlightingOnLoad();</script>
{{ end }}
{{ range .Site.Params.jsFiles }}
  {{ if eq . "default" }}
  <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
  <script src={{ "js/util.js" | relURL }}></script>
  <script src={{ "js/main.js" | relURL }}></script>
  <script src={{ "js/add-on.js" | relURL }}></script>
  {{ else }}
    <script src="{{ . | relURL }}"></script>
  {{ end }}
{{ end }}
{{/* Backwards compatibility for deprecated parameter ".Site.Params.staticman.staticman" */}}
{{ if or .Site.Params.staticman.enabled .Site.Params.staticman.staticman }}
  {{- $smjs := resources.Get "js/staticman.js" | resources.ExecuteAsTemplate "js/staticman.js" .Site.Params.staticman -}}
  <script src='{{ $smjs.RelPermalink }}'></script>
  {{ if and .Site.Params.staticman.recaptcha.siteKey .Site.Params.staticman.recaptcha.encryptedKey }}
    <script src='https://www.google.com/recaptcha/api.js'></script>
  {{ end }}
{{ end }}
{{ template "_internal/google_analytics_async.html" . }}
